run package if method exists