unload event now also a constant