moved things, rmeoved function
made error-output go to stderr and return 1