sample reader, otherwise small changes