starting to streamline the define-object compiler