added wsrlua for non-console applications