updates with code to send off spark core commands