reorganized device makefile and added apns