implement web api
console cleanup