remove legacy direction