how to install APG