fixed issue with program history, also bug in 'validate_oper' function