stop files now give better messages and error handeling
changed hard-coded config values into make variables