update methods and add setspawn command