tried to fix stuff (shift-reduce, holger's completely broken function
handling)