allowing optional type alias on the id fetch.