Scripts and authentication issue fixed