fix stupid bugs so hopefully ssh works correctly...