server mostly works now