properly handle offsets caused by fork modif
add code identifier
add named portals