related to #49
oops
with these changes the code compiles