small fixes to get it to run