core: print variables correctly, fix OperationExpress calculation