fix for broken values + simple gen post function for use with .submit() hook