resources cleanup
res cleanup
fix #35