move optimizer options in better place