use gin instead of factories