respect expose option of require, fixes #839