fix offset
implement basic content generator