fix hostname on mavericks
fix 'failed to connect to server'