split into backendutil class