initialize and do some configures