More prefix support

Files with multiple classes now work right.