Unused code removal (syscalls) (refs #38)
ui: fix var scope (refs #56)