made changes as per PR comments and implemented deprecation message logger