outline of code for velvet wrapper