scaffolded Loans functionality