updated for work with we-plugin