added methods for creating files using the spec loader