fix postProcess & validate functions