passing allow option when using as a module