move dependencies to their respective libraries