support placeholderMode. Fixes #655