Validate main path, remove unused re