added jade compile step and refacted storage