Platformstack rewrite