move compat stuff out of the plugin file for clarity