move lib utilities into craptobuy.lib