remove local server code and add logcat code