added nocheck option, optimized output