added support for internal tophat