simplified mockup code