added AP mode