more work on processing conditions and more code added to ngdl_write