moved v2 to archive
added v3 script
removed test code from archived version