fix for weird redirect issues after adding authenticated_async decorator