update pass-refactoring to the new API