added basic http authentication support