test

read and write functions