copy code struct from silex-skeleton