restore dev code fixes missing port