output directory creation added