cleanup (vars and data for mac os)