fix some bugs & started getting authorization in