moved libraries higher up