valdemar was presumably implied in an uprising to overthrow to magnus