add demo function

debugging is broken with a linking error...

trying to