fix platform, removed debug