modified functions for response meta data

Hi trey, may be its first pull request to you.