made the code compilable with cy3, not finised yet