rework spawn, add runtime-debug, update style