finished gui/server + fixes