added helper method for subdirectory deploy