pass hash ref instead of individual values
add some tests for the static files