fixed too many messageboxes