loan mechanics update