small style change
implement / configure logging to stderr, reorder actions for update api, so that a lot of info can be logged