fixes to make specs run