added relatives template
fixed handling user variables