added output ports for start and end frames