started on adding a library of handy functions