ported to PebbleSDK-2.0BETA7