update main methods, add param json