added middleware for version.properties