added some helper utilities
moved utilities to utils.go and added a few more