framework and room logic