re-added debug lines for authorization as it helps in diagnosing some problems