__init__ changed; pass arguments to route function