add implementation of bytecode based type mapping