added debug ability
mc