now works for server_testing; order of execution went wrong