try if/then/else for coveralls
further edits for clang