added configuration, last login support