adding debug for navigation