cleanup of resources directories