add inherit_resources
fixies bags with spec
bugs
add permalink