aded some debug methods