new HandlePrefix function added