moved obj check to plugin