handy functions and classes for future projects