some code moving, need to figure out run cmd through service