separated app from library