Revert "line is preventing allowed_types to work correctly. any reason for this?"

This reverts commit 48af4e89cadf0b23357adacd0f212385615eb926.