Explicitly pass parentid into create_prelim

This will make matters less confusing when you look at the code again next year