changed opening mode order to prefer more flexible mode