adds a few useful functions