improve logging
rm tmp files