added warning to stderr
fix dot output