orientation: refactoring using shared libraries