Maybe this can help:
https://github.com/neobuddy89/hammerhead/commit/89f7ea3cd6c19baee3af5fbee4df1ccb6df11de9