this file handles scope parsing (broken)