basic function for listing and starting stopping instances