moved capture instances to companion; removed std package