include basic auth and functools wrap