added doors and other functionality