added subprocess call + code for actions