use config for NewBBS, with other minor refactors