added possibility to debug