testing open/read/write within execute function