initial version of sample-local