veils now working! needs some optimization work.