added feature to only run sub-routine