multilink code skeleton