make sure that server does not crash, needs work