allowing specifing directory for the get command