small bug fixes in debug mode, auth_token auto adding added to sdk