refactored, removed web stuff, renamed ->nia