working main package path finder