updated derr to logs and add go register