testing mode implemented