updated for github compatibility