adding handling for inline and block callouts