debug clean up