bundle cleanup
add check for old bundles function