improve script by considering authors
some fixes