wip
add tests
merge package_repository