fix compile time errors with untested code