added debug flag for smack