update to latest Apphance framework