minor update

added server config reader
updated error handler