fixing ssh run and adding clean directory