defined api for lease module, added some helpers