mandrake needs to do planning