added crude define support and hide element support.