ugly hacks because server is not responding correctly