simple prototype "ls" function