added basic http auth
added functions