fixing authorization issues