asset encode cleaned up