refactor backend utils into separate ns