added spawn method fix