remove test array
fix seg error
basic auto-tools
fix copy problem