alternative solution for https://jira.opensource.anotheria.net/browse/MSK-285