wrote derivation loading code
added some methods for working with derivations