action api refactoring + framework refactoring