moved main functionality to new API, fixed the public to notebook flags