added assignMethod with XML files handling