print to stderr. some code cleanup
print to stderr. some code cleanup