added directory set up and stackbuilder