fix #631 add warning for use of deprecated