error message refactor ... move to lib
error message refactor ... mobile