added more helper functions in utils.common module.