added initial WY loader code