more error checking in configuration