added logic for handling skeletons
support building of base and skeleton files