first API then GUI