make compatible with pagodabox