bug: should only fetch accepted code