add setOpts functionality to Module