update init.lua: add useragent filter support