fix panic, add repo check, signed check