handle initial config