layout resolver to look up token codes

no need to manually update the token map function