spawn working