implemented make_dump and basic auth middleware