odb frontend code