misc. custom lua methods to help were needed lol