shared code between yamw and other projects