added camera locking