refactor code to load constant object when loading it instead of passing through request.