fix build and update config