cli: only load file if it is a class