fix a bug of not being able to upsert
make bin executable