Fix parts framework

Fixes #18 but still no change on #173, which can be implemented in a later branch. 
@brotatos message me on IRC to discuss the changes here.