fixed in ngrt4nd backend
refactoring: extract code to methods