some methods to make it easier to extract and typecast environment values
add in a self(e) method to all the runtime class definitions to make writing them easier (this also centralizes error handling as well)