added refresha and network error
added cast