move to_bool into config
cleaner checks and balances