add basic locking mechanism to dynamic site