get the source of the last n lines