init compile function (going to need for parsing more complex attributes)