move some object irrelavent functions to utils.js