cleanup on main script