init framework with closure