updated modules and added debug method