knocking.... at random times

started up my freshly rebuilt engine and it will run but then knock once and then miss... then run fine and knock again at random times.... checked the top end and it is fine. spun thwe crank by hand and listened for a loose rod and heard nothing... pulled the plugs and spun it with the starter and heard nothing.... any ideas ?