jscs errors
add path restore to offline cb