callback with spec file