initial import

library script file, will be source-d by the other helper scripts