added loan bookeeping. is not actually checked yet.