separate lib into dirs