it might be good to separate this lease logic into a base file to be sourced.