fix exports
use library functions in example