added code to handle relative enum references