add basic-auth && newPost function