some fixes for ssh to work