set options in code