joints design pattern. Addresses #283