added interupt catching routine
removed temp file