move plugins to lib