added a few go functions.