renamed run and shutdown. make necessary changes