prevent send headers after they have already been sent