add support for processIn/processOut on fields

Added tests also