merged two framework() headready calls into one
set fn to public