added default case to the case
added some debug