made it work offline