simplify read_post/get_var functions