moved lib into public