add authorization key saving function
add status update function