allow storage path to be a lambda