change two py-app to py-method