better syntax for using the library