code auth done
auth writing done