instrument functions
instrument functions
mostly completed, instrument on real web apps next
add tests