switched pkg main to lib/