thorough refactor of the assets service code.
thorough refactor of the assets service code.