added warning instead of raising exception