updated utils/auth for easier use