added testing mode