fix: add mustache in factory function