moved passmanager creation to constructor