refactor lib calls. Add workaround for get latest and for updating already exising maps and for long titles