adding "expose" command and supporting classes