work offline and some formatting