updated poll to use better ls call