added support for old ptr and beta versions