go implementation for filedrop