some more library functions and demos