changed statusdir , and added statusdir creation