fix errors, test app