added rst mode