remove legacy code
read and process config