SRM245 d1-2 and fixes in prefix_fn