restrict function arithmetic to operators; Move all logic-breaking functions into a separate file