horrible workaround for the automodapi