implement some helper functions
implement some helper functions

MrStrong/Sia,rivine/rivine,ericflo/Sia,MrStrong/Sia,rivine/rivine,Mingling94/Sia,mtlynch/Sia,ChrisSchinnerl/Sia,ChrisSchinnerl/Sia,mnsl/Sia,mnsl/Sia,NebulousLabs/Sia,johnathanhowell/Sia,NebulousLabs/Sia,mharkus/Sia,kustomzone/Sia,cyrozap/Sia,mharkus/Sia,mtlynch/Sia,ericflo/Sia