add -o flag and auto find apk feature