server seems to be working, weird output problems though