add authentication and sort