functional apk. Still need to fix some bugs.