added tmp and output directories