add script for registering child with parent