WIP
WIP: base without profiles works
WIP: syntax & bug fixes