minor modification to loaning handler