added rust mode