package inference fixes