refactoring VelocityFile class