change to suit the ncephsb, add monthly-func test code