add possibility to use berear token rather than oauth
add possibility to use berear token rather than oauth