MNT: detector stubs; move plugins to separate file