cleanup
add support for static resources