add reflection methods to allow gradle compilation