fixing logging, and quiz retakes for api