adding some debug features