updated for AppHarbor