debug file output added