handle config files
minor improvements