permission changes. added "\r" for ssh terminal