little bits of code I wrote that could be multi-purpose someday