updated config file defaults and swap to sprintf