improve interface consistency to pass php strict mode checks