maybe this needs to be a subshell?