additional checks for enabled framework
add some checks for the compier to avoid notices.