copied code from slc.linguatools. Started to adapt code to work with PAM (so
far only Archetypes). Strictly work in progress
correct path