new compiling function and some minor config tweaks