added create remote directory function