server part kinda done
json errors