add old constructor back for compatibility