added configuration constructor