added support for simulation of scaffolds