[major] add logic to overrule compiled.server once
[fix] throw error if no valid layout is provided