this would have been handy. simplified get_post_meta function