add check for strrchr