multiple targets and alias support
fix tmp dir bug