core: unswitch spec application checker and cleanup