protected function initialize()
	{
		$this->log('initialisatie', LOG_DEBUG);

		// in case of multiple remote hosts use the first
		$remote_host = is_array($this->remote_host) ? $this->remote_host[0] : $this->remote_host;

		$this->timestamp = time();
		$this->remote_target_dir = strtr($this->remote_dir_format, array('%project_name%' => $this->project_name, '%timestamp%' => date($this->remote_dir_timestamp_format, $this->timestamp)));

        if ($timestamps = $this->findPastDeploymentTimestamps($remote_host, $this->remote_dir)) {
            list($this->previous_timestamp, $this->last_timestamp) = $timestamps;
        }

		if ($this->previous_timestamp)
		{
			$this->previous_remote_target_dir = strtr($this->remote_dir_format, array('%project_name%' => $this->project_name, '%timestamp%' => date($this->remote_dir_timestamp_format, $this->previous_timestamp)));
		}

		if ($this->last_timestamp)
		{
			$this->last_remote_target_dir = strtr($this->remote_dir_format, array('%project_name%' => $this->project_name, '%timestamp%' => date($this->remote_dir_timestamp_format, $this->last_timestamp)));
		}
	}