started to refactor meta fun structure for function spaces