refactor scripts so we can get coverage ourselves without having to go through coveralls