script work for bitship and spawner