unecessary imports and code for spot instances deleted