fix #31

add resources dynamically