add shutdown to make it work