initialize options by config (#1 #5 #6)