Improved message output in api module