fixed a multiuser bug
added variables to make it work on other hosts