added support to basic access authentication