added some more devm stuff and exported "split_page"