changed the stub generator so it generates individual directories