updated makescript
added locking mutex when writing to frame catalouge