some notes taken for race conditions