minor correction and removal of temp files