allow for seperate heap/stack mesh creation