all kinds of useful code