added sml mode