added missing docpad arg in createInstance callback