initial outline of envelope (doesn't yet work)