it actually works now, don't know why terminal multiplexers give an error even with pty access but this setup is better overall anyway