fix up ssh handling