corrections + rewrite of basic_auth and module