error was undefined, switched to error
made frontend use v2 api