work on spawn system