just FYI and for another bug, this part with "apploadtime" is really bad code and should be rewritten using atoms.