new way of handling plugins