apns: fix errors and rename command