export part of logic into plugin core